package com.lwj.test.stringbuffer;

public class MyThread implements Runnable {

	private StringBuilder str;
	private String s;
	public MyThread(StringBuilder str,String s){
		this.str = str;
		this.s = s;
	}
	@Override
	public void run() {
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		str.append(s);
	}

}
